org.eclipse.vtp.desktop.editors.core.model
Class RenderedCanvas
java.lang.Object
org.eclipse.vtp.desktop.editors.core.model.RenderedCanvas
- All Implemented Interfaces:
- UICanvasListener, ComponentFrameListener
public class RenderedCanvas
- extends java.lang.Object
- implements ComponentFrameListener, UICanvasListener
Internal State Management Classes
|
Method Summary |
ElementFrame |
addElement(Element element,
int x,
int y)
|
void |
addListener(RenderedCanvasListener listener)
|
void |
canvasDeleted(UICanvas canvas)
|
void |
componentFrameChanged(ComponentFrame componentFrame)
|
void |
componentFrameDeleted(ComponentFrame componentFrame)
|
void |
componentFrameRepaintRequested(ComponentFrame componentFrame)
|
ConnectorFrame |
connectElements(ElementFrame source,
ElementFrame destination)
|
void |
deleteSelectedItems()
|
ComponentFrame |
findComponentAt(int x,
int y)
|
ConnectorFrame |
findConnectorAt(int x,
int y)
|
ElementFrame |
findElementAt(int x,
int y)
|
protected void |
fireChange()
|
protected void |
fireDeleted()
|
protected void |
fireFormatChange()
|
java.util.List |
getConnectorFrames()
|
java.util.List |
getElementFrames()
|
SelectionStructure |
getSelection()
|
UICanvas |
getUICanvas()
|
void |
initializeGraphics(org.eclipse.swt.graphics.GC gc,
java.util.Map resourceMap)
|
void |
orientationChanged(UICanvas canvas)
|
void |
paintCanvas(org.eclipse.swt.graphics.GC gc,
java.util.Map resourceMap,
int flags)
|
void |
paperSizeChanged(UICanvas canvas)
|
void |
removeListener(RenderedCanvasListener listener)
|
SelectionResult |
selectAt(int x,
int y,
boolean additive)
|
void |
selectRegion(org.eclipse.swt.graphics.Rectangle rect,
boolean additive)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenderedCanvas
public RenderedCanvas(RenderedModel model,
UICanvas canvas)
initializeGraphics
public void initializeGraphics(org.eclipse.swt.graphics.GC gc,
java.util.Map resourceMap)
findElementAt
public ElementFrame findElementAt(int x,
int y)
findConnectorAt
public ConnectorFrame findConnectorAt(int x,
int y)
findComponentAt
public ComponentFrame findComponentAt(int x,
int y)
addElement
public ElementFrame addElement(Element element,
int x,
int y)
connectElements
public ConnectorFrame connectElements(ElementFrame source,
ElementFrame destination)
paintCanvas
public void paintCanvas(org.eclipse.swt.graphics.GC gc,
java.util.Map resourceMap,
int flags)
selectAt
public SelectionResult selectAt(int x,
int y,
boolean additive)
selectRegion
public void selectRegion(org.eclipse.swt.graphics.Rectangle rect,
boolean additive)
getUICanvas
public UICanvas getUICanvas()
getSelection
public SelectionStructure getSelection()
deleteSelectedItems
public void deleteSelectedItems()
getConnectorFrames
public java.util.List getConnectorFrames()
getElementFrames
public java.util.List getElementFrames()
componentFrameChanged
public void componentFrameChanged(ComponentFrame componentFrame)
- Specified by:
componentFrameChanged in interface ComponentFrameListener
addListener
public void addListener(RenderedCanvasListener listener)
removeListener
public void removeListener(RenderedCanvasListener listener)
fireChange
protected void fireChange()
fireFormatChange
protected void fireFormatChange()
fireDeleted
protected void fireDeleted()
componentFrameDeleted
public void componentFrameDeleted(ComponentFrame componentFrame)
- Specified by:
componentFrameDeleted in interface ComponentFrameListener
componentFrameRepaintRequested
public void componentFrameRepaintRequested(ComponentFrame componentFrame)
- Specified by:
componentFrameRepaintRequested in interface ComponentFrameListener
canvasDeleted
public void canvasDeleted(UICanvas canvas)
- Specified by:
canvasDeleted in interface UICanvasListener
orientationChanged
public void orientationChanged(UICanvas canvas)
- Specified by:
orientationChanged in interface UICanvasListener
paperSizeChanged
public void paperSizeChanged(UICanvas canvas)
- Specified by:
paperSizeChanged in interface UICanvasListener